package base

import "gorm.io/gorm"

var BaseDb *gorm.DB

func GetModelDB(tx *gorm.DB) *gorm.DB {
	if tx == nil {
		return BaseDb
	} else {
		return tx
	}
}
